package java_DesignPattern.CreatorPattern.FactoryPattern.FactoryMethod;

/**
 * 拿铁咖啡工厂
 */
public class LatteCoffeFactory implements CoffeFactory {
    /**
     * 创建拿铁咖啡
     * @param name 咖啡名称
     * @return 咖啡
     */
    @Override
    public Coffe createCoffe(String name) {

        Coffe latteCoffe = new LatteCoffe();
        latteCoffe.addMilk();
        latteCoffe.addSugar();
        return latteCoffe;
    }
}
